package com.cxyzy.progressbardemo

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        //隐藏进度条
        progressBar.visibility = View.GONE
        //显示进度条
        progressBar.visibility = View.VISIBLE

        //横向进度条：设置进度
        horizontalProgressBar.progress = 50

    }
}
